-module(cfg_map).
-export([
get/1,
all/0
])
get(1) ->#cfg_map{id=10001,name="第1层",initP=[6,2],monsterIdList=[1,2],monsterGridList=[{"row":4,"col":11}],entrance=[{"row":3,"col":15,"to":10002}]};
get(2) ->#cfg_map{id=10002,name="第2层",initP=[6,2],monsterIdList=[3],monsterGridList=[{"row":4,"col":11}, {"row":10,"col":11}],entrance=[{"row":3,"col":1,"to":10001}, {"row":13,"col":1, "to":0}]};
get(_) -> null.
all() ->
[#cfg_map{id=10001,name="第1层",initP=[6,2],monsterIdList=[1,2],monsterGridList=[{"row":4,"col":11}],entrance=[{"row":3,"col":15,"to":10002}]},#cfg_map{id=10002,name="第2层",initP=[6,2],monsterIdList=[3],monsterGridList=[{"row":4,"col":11}, {"row":10,"col":11}],entrance=[{"row":3,"col":1,"to":10001}, {"row":13,"col":1, "to":0}]}].